package com.zem.imos.Entity.Enum;

import com.baomidou.mybatisplus.annotation.IEnum;

public enum         Role implements IEnum<Integer> {
    Doctor(0, "医生"),
    Patient(1, "患者"),
    Admin(2, "管理员");
    private int code;
    private String desc;

    Role(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
    @Override
    public Integer getValue() {
        return code;
    }
    public  String getDesc(){
        return desc;
    }
}
